Establish relationships in Core Data.