Refactoring: module about add and update moves into transaction.py