Add the code to initialize coredata into the AppDelegate.m and add the CoreData framework to the build