query tree route: implement update operation