Updating phase of of the query engine