add rawQuery access from client; implement query logger