Bash Check If String Exists In Sql