setting up coredata to the project