Fixed cast to db row for tx records