update transation history table