Added transaction db saving