update data for query