     
     open func valueForKey(_ key: String) -> [String : Any]? {
         guard let db = db else {
-            print("Database reference is not existent (it has probably been closed)")
+            NSLog("Database reference is not existent (it has probably been closed)")
             return nil
         }
         var rawData: UnsafeMutableRawPointer? = nil

                let dirpath =  NSURL(fileURLWithPath:path).deletingLastPathComponent?.path ?? ""
                try FileManager.default.createDirectory(atPath: dirpath, withIntermediateDirectories:false, attributes:nil)
            } catch {
                print("Problem creating parent directory: \(error)")
            }
        #endif
        self.open()

            let fileManager = FileManager.default
            try fileManager.removeItem(atPath: path)
        } catch {
            NSLog("error deleting database at path \(path), \(error)")
        }
    }
    
