Update query builder