Added CoreDatamodel and methods for fetching and writing data