updating query builder