Only catch MySQL2 Errors in sinatra app

Connection to MySQL server is sometimes lost in sinatra app,
which was causing flakiness in our CI environments

Revert a query syntax error used for debugging