removed transaction object and moved it into the database object