Update query.