Linux Bash Check If String Is Not Empty In Sql