Initial transaction logic
Start/save transaction logic and db changes