     
     @IBOutlet weak var saveNewContact: UIButton!
     
+    // Firebase
+    var ref: FIRDatabaseReference!
+    private var _refHandle: FIRDatabaseHandle!
     
     override func viewDidLoad() {
         super.viewDidLoad()

                email: self.newEmail.text!,
                trackID: self.newTrackID.text!,
                photo: imageData)
            self.navigationController?.popToRootViewControllerAnimated(true)
        }
    }

            alert.addAction(alertAction)
        }
    }
    
    func sendProfileToDB(trackID trackID: String) {
        let databaseChildPath = "user_contacts/\(AppState.sharedInstance.UUID)"
        let data = [trackID : true]
        self.ref.child(databaseChildPath).updateChildValues(data)
        print("Profile sent to DB")
    }
}
