         name: req.params.newName
     )
     sendResult mongoResult, res
-    return
 
-  return
 Bacon = require("baconjs")
 randomstring = require("randomstring")
 MongoClient = require("mongodb").MongoClient

      console.log "ERROR: cannot connect to mongo at ", mongoUrl, err
    else
      AppDatabaseWithConnection conn, app
    return

  return
AppDatabaseWithConnection = (conn, app) ->
  mongoPost = (content) ->
    data =

        res.json value
      else
        res.status(404).send "Not found"

  apps = conn.collection("apps")
  app.get "/apps", (req, res) ->
    sendResult mongoFind({},
      author: true
      name: true
    ), res

  app.get "/apps/:author", (req, res) ->
    sendResult mongoFind(
