added completion handlers to core data helper methods