update with query