get data from server and save to the Core Data