delete old transactions when inserting the new ones