save when tx inserted