(
    function()
    {
        "use strict";

        var MongoClient = require('mongodb').MongoClient,
            Server = require('mongodb').Server;

        var client = new MongoClient(new Server('localhost', 27017));

        client.open(function(err, client)
        {
            if (err)
            {
                console.log('db connection failed', err);
            }
            else
            {
                var db = client.db("wrd");

                if (db)
                {
                    console.log('connected');

                    var adminDb = db.admin();

                    adminDb.listDatabases(function(err, databases)
                    {
                        if (err)
                        {
                            console.log(err);
                        }

                        console.log(databases);

                        client.close();
                    });

                }
            }
        });

    }());

@@ -95,17 +95,18 @@
 goClient
-,
+;%0A
 %0A       
@@ -110,140 +110,118 @@
     
-    Server = require('mongodb').Server;%0A%0A        var client = new MongoClient(new Server('localhost', 27017));%0A%0A        client.open(
+var connection = process.env.MONGOLAB_URI %7C%7C %22mongodb://localhost/%22;%0A%0A        MongoClient.connect(connection, 
 func

Use connection string