add transaction type table, and ledger field.