Implemented mongo persistence for transact