Application delegate changes for Core Data