Add internal logging to executeQuery/Statement() and addBatch()