Added CoreData base and loading of class info from database