query engine update