update the history2 table