committing changes for saving data for task history.