         var fileData = [String: NSData]()
         [ sqlitePath, sqliteWALPath, sqliteSHMPath ].forEach {
             guard let data = NSData(contentsOfFile: $0) else {
-                logger.logWarning(message: String(format: "[%@] No data read from %@.", instanceType(self), $0))
+                singleton.logger?.logWarning(message: String(format: "[%@] No data read from %@.", classType(self), $0))
                 return
             }
 

            let applicationSupportDirectory = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true).first! as NSString
            let path = applicationSupportDirectory.appendingPathComponent($0.key)
            if !$0.value.write(toFile: path, atomically: true) {
                logger.logWarning(message: String(format: "[%@] Failed to write imported data to %@.", instanceType(self), $0.key))
            }
        }


        return NSKeyedArchiver.archivedData(withRootObject: fileData)
    }

    class func importData(data: Data) {
        guard let fileData = NSKeyedUnarchiver.unarchiveObject(with: data) as? [String: NSData] else {
            singleton.logger?.logWarning(message: String(format: "[%@] Could not unarchive data to recover encoded databases.", classType(self)))
            return
        }

