Added timestamptz conversion.
Logger to debug each query.