Core data helper classes.