Make serialization a DB concern