     
     private let manager = Alamofire.Manager(configuration: NSURLSessionConfiguration.ephemeralSessionConfiguration())
     
-    private func fetchOrUpdateAppleServiceURLs() {
+    /// This method downloads the app config from the server and sets It in self, which makes the app download the videos and schedule from the servers specified in the config
+    private func downloadAppConfigAndSyncDatabase() {
         manager.request(.GET, Constants.internalServiceURL).response { _, _, data, error in
             guard let jsonData = data else {
                 print("No data returned from internal server!")

            // replace configuration on the database with the new configuration
            self.realm.beginWrite()
            do {
                self.realm.delete(self.config)
                self.realm.add(fetchedConfig)
                
                try self.realm.commitWrite()

            
            let fetchedConfig = AppConfigAdapter.adapt(configJSON)
            
            if let existingConfig = self.realm.objects(AppConfig.self).last {
                // if the fetched config from the service is equal to the config in the database, don't bother updating It
                guard !fetchedConfig.isEqualToConfig(existingConfig) else { return }
            }
            
            if fetchedConfig.isWWDCWeek {
                mainQ {
