Make my life easier by printing the SQL as the exception hides it (need
to re-write api later)