update query.