Common query to update history. Typo fixes