added a query logger and a queryengine