Log SQL statements a bit more in detail