move coredata out of library