         
         if !self.addPersistentStore(coordinator, config: config, abortOnFailure: !self.wipeDatabaseOnConflict) && self.wipeDatabaseOnConflict {
             Logging.log("Will delete DB")
-            try! NSFileManager.defaultManager().removeItemAtURL(url)
+            try! NSFileManager.defaultManager().removeItemAtURL(url!)
             self.addPersistentStore(coordinator, config: config, abortOnFailure: true)
         }
         

        self.init(modelName: modelName, storeType: NSSQLiteStoreType)
    }
    
    public init(modelName: String, storeType: String) {
        self.modelName = modelName
        self.storeType = storeType
    }
    
    public init(parentContext: NSManagedObjectContext) {


    private var modelName: String!
    private var storeType: String!
    private var inDirectory: NSSearchPathDirectory!
    private var writingContext: NSManagedObjectContext?
    public var wipeDatabaseOnConflict = false
    private static var spawnedBackgroundCount = 0
