Added core data and background operations to sync the data