removed unnecessary saving of query for db0 calls