Escape the backticks in bash properly for SQL.