update after query