 
                 logInfo(tag) { "Checking to see if persistent store is compatible with the model." }
 
-                if !model.isConfiguration(configuration, compatibleWithStoreMetadata: metadata) {
+                if model.isConfiguration(configuration, compatibleWithStoreMetadata: metadata) {
 
                     logInfo(tag) { "Model is incompatible. Attempting to remove the persistent store." }
                     try persistentStoreCoordinator.removePersistentStore(persistentStore)

        }
    }
    
    private dynamic func handleContextDidSaveNotification(notification: NSNotification)  {
        
        if let context = notification.object as? NSManagedObjectContext {

                    logInfo(tag) { "Attempting to remove file \(storeURL) and -shm and -wal files" }
                    if let path = storeURL.path {

                        deleteIfExists(fileURL: storeURL)
                        deleteIfExists(fileURL: NSURL(fileURLWithPath: "\(path)-shm"))
                        deleteIfExists(fileURL: NSURL(fileURLWithPath: "\(path)-wal"))
                    }

                    logInfo(tag) { "Attaching new persistent store \"\(storeURL.lastPathComponent ?? "Unknown")\" for type: \(persistentStoreType)."}
