Update the query builder