saving data to export history table