Working with data models and persistence