add explain, log_slower_than dumping the query into the return structure