           application_name: 'myapp'
 
         DbBrowser.post('ramls', { raml:post_data }, (err, res, body) =>
-          doc.browser_id = body.id
+          config.browser_id = body.id
           open URL.format("#{db_browser_url}/#browser/#{doc.browser_id}")
-          fs.writeFile(data_definition_path, yaml.safeDump(doc), (err,data) =>
-          )
+          fs.writeFileSync(data_definition_path, yaml.safeDump(config))
         )
 
     if com=='all'


    com = params.shift()

    readConfig = () ->
      try return fs.readFileSync(data_definition_path, 'utf8')
      catch e
        console.log "you must first init dolandb with command 'steroids dolandb init'"

      deferred.resolve()
    )


    return deferred.promise

  openRamlBrowser: () =>
