wrap logging around the actual query call itself.

This is to be consistent with the way the mysql2 adapter times queries