wrap sql.Exec and transaction methods

We add wrappers for the standard sql.* funcs to add logging
capabilities.

Introduce query.String() so that query implements the Stringer
interface.