Include the SQL in the exception message if something goes wrong.