log SQL query debug info