Serialize/Deserialize TxRecord into db row