add query logger