fixed a little more
checks the status of the transaction before adding to the databases
frontend checks