Bash Script Check If Variable Contains Function In Sql