     public func getId() -> Int {
         return id
     }
-    
+    func initializeMetaData() {
+        let entity =
+            NSEntityDescription.entity(forEntityName: "Videos",
+                                       in: managedContext)!
+        let video = NSManagedObject(entity: entity,
+                                    insertInto: managedContext)
+        DashiAPI.getAllVideoMetaData().then { value -> Void in
+            for currentVideo in value {
+                
+                
+                video.setValue(currentVideo.getId(), forKeyPath: "id")
+                video.setValue(currentVideo.getStarted(), forKeyPath: "startDate")
+                video.setValue(currentVideo.getImageContent(), forKey: "thumbnail")
+                video.setValue(currentVideo.getLength(), forKeyPath: "length")
+                video.setValue(currentVideo.getSize(), forKey: "size")
+                video.setValue(currentVideo.getStartLat(), forKey: "startLat")
+                video.setValue(currentVideo.getStartLong(), forKey: "startLong")
+                video.setValue(currentVideo.getEndLat(), forKey: "endLat")
+                video.setValue(currentVideo.getEndLong(), forKey: "endLong")
+                do {
+                    try self.managedContext.save()
+                } catch let error as NSError {
+                    print("Could not save. \(error), \(error.userInfo)")
+                }
+            }
+            }.catch {
+                error in
+                print(String(data: (error as! DashiServiceError).body, encoding: String.Encoding.utf8)!)
+        }
+    }
     public func getSettings() -> Dictionary<String, Any>{
         let settings = [
             "wifiOnlyBackup": wifiOnlyBackup,

            autoDelete = true;
            autoBackUp = true;
            initializeSettings()
        }
        else{
             wifiOnlyBackup = result[0].value(forKeyPath: "wifiOnlyBackup") as! Bool

import Alamofire
import SwiftyJSON
import CoreData
import PromiseKit
class Account {

    // Protected members
