     @fileWatcher.close() if @fileWatcher?
     @fileWatcher = fs.watch @file(), (event, filename) =>
       @emitter.emit 'db-updated'
-      # Send update event
 
   updateFile: ->
     fs.exists @file(true), (exists) =>

      if key is id
        delete(projects[key])

  ## DELETE
  # delete: (project) ->

  onUpdate: (callback) ->
    @emitter.on 'db-updated', () =>

      else
        atom.notifications?.addError errorMessage

  update: (props, callback) ->
    return false if not props._id

