       else
         @db.add props, (id) =>
           @props._id = id
+          @lookForUpdates()
       return true
     else
       return false

  projectSettings: null

  constructor: (@props={}) ->
    @db = new DB()
    @propsToSave = []
    for key, value of @props
      @propsToSave.push(key) unless key in @propsToSave
    @props = _.deepExtend @getDefaultProps(), @props

  getDefaultProps: ->
    props =

  open: ->
    atom.open options =
      pathsToOpen: @props.paths
      devMode: @props.devMode

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