Bash If Variable Is Not Empty Sql