Trigger inserting in history tables completed