print queries for debug