Added index to the history table.