update query to save request