#25. Added a query logger for logging queries