Forward SQL errors to web client.
When showing SQL error, also show the query itself.