Minor cleanup.
Minor cleanup.

Remove local variable that was never used for anything real (just passed as
NULL to mylog/qlog). Replace with real query in the logs, and add some extra
logging.

gavioto/psqlodbc,gavioto/psqlodbc,gavioto/psqlodbc