added foreign key to TxJSON