The db layer is now aware of type definitions. This lets dbs transform objects while saving.