Fix issue of Custom Data types not saving onto the db.