Passing the query object to drivers to prepare the sql