update the history record