Db class for txs