More verbose error reporting for SQL errors