 
 
 do {
-    let provider = try VaporMongo.Provider(database: "ivsalocal", user: "", password: "")
-    drop.addProvider(provider)
+    // let provider = try VaporMongo.Provider(database: "ivsalocal", user: "", password: "")
+    try drop.addProvider(VaporMongo.Provider.self)
 }
 catch let e {
     debugPrint("failed to add mongo provider \(e)")


enum GeneralErrors: IVSAError {
    case missingParams
    
    var vaporError: Abort {
        switch self {
        case .missingParams:

    var baseURL: String {
        return uri.scheme + "://" + uri.host + (uri.port == nil ? "" : ":\(uri.port!)")
    }

}


