         created = DateConv.toDate(timestamp: account["created"].stringValue)
         id = account["id"].intValue
         email = account["email"].stringValue
-        fetchRequest.predicate = NSPredicate(format: "id == %@", id)
+        fetchRequest.predicate = NSPredicate(format: "id == %ls", id)
         var result: [NSManagedObject] = []
         // 3
         do {

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

    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,
