Edit self.managedObjectContext method for updates