some changes to use TxDBSerialNum instead of TxHash