       else
         atom.notifications?.addError errorMessage
 
-  ## UPDATE
   update: (props, callback) ->
     return false if not props._id
 

      if key is id
        delete(projects[key])

  ## DELETE
  # delete: (project) ->

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


        callback(found)

  add: (props, callback) ->
    projects = CSON.readFileSync(@file()) || {}
    id = props.title.replace(/\s+/g, '').toLowerCase()
