add tx to db from blockchain.getTx