     
     public init(path: String, filename: String) {
         
-        let unixPath = path.replacingOccurrences(of: "file://", with: "")
         // create any folders up until this point as well
-        try! FileManager.default.createDirectory(atPath: unixPath, withIntermediateDirectories: true, attributes: nil)
-        
-        let _ = sqlite3_open("\(unixPath)/\(filename)", &db);
+        try! FileManager.default.createDirectory(atPath: path, withIntermediateDirectories: false, attributes: nil)
+        
+        let _ = sqlite3_open("\(path)/\(filename)", &db);
     }
     
     public func close() {

        
        if type == .Int {
            return numericValue.uint64Value
        }
        
        return nil
    }
    
    public func asUInt32() -> UInt32? {
        
        if type == .Int {
            return numericValue.uint32Value
        }
        
        return nil

        } else if (mirror.subjectType == UInt64.self) {
            type = .Int
            numericValue = NSNumber(value: value as! UInt64)
        } else if (value is NSNumber) {
            type = .Double
            numericValue = value as! NSNumber
