Unable to connect to MongoHQ using Node.js + Expressjs

I've recently been trying to learn both Node.js and Mongo. I set up an account on Heroku, got a simple Node.js app running correctly and then took a dive into Mongo. I added on MongoHQ, but since then have been unable to connect the app to the database. Every time I run the app it crashes. At this point I just want to figure out what is wrong with my db connection or my use of mongoskin. Here is my current code:

var express = require('express');
var mongo = require('mongoskin');

var app = express.createServer(express.logger());

var conn = mongo.db(process.env.MONGOHQ_URL);

app.get('/', function(request, response) {
    conn.collection('facts').find().toArray(function(err, facts){
            if(err) throw err;
            response.send(facts);
    });

});

var port = process.env.PORT || 5000;
app.listen(port, function() {
  console.log("Listening on " + port);
});

and my package file:

{
    "name": "app1",
    "version": "0.0.4",
    "dependencies": {
            "express": "3.x",
            "mongoskin" : "0.1.x"
    },
    "engines": {
            "node": "0.8.x",
            "npm": "1.1.x"
    }
}

and lastly the error code:

2012-12-11T17:42:32+00:00 app[web.1]:     at Module.load (module.js:356:32)
2012-12-11T17:42:32+00:00 app[web.1]:     at Module._compile (module.js:449:26)
2012-12-11T17:42:32+00:00 app[web.1]:     at Object.<anonymous> (/app/node_modules/mongoskin/lib/mongoskin/db.js:162:28)
2012-12-11T17:42:32+00:00 app[web.1]:     at Db.Object.defineProperty.get [as state] (/app/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/db.js:2125:31)
2012-12-11T17:42:32+00:00 app[web.1]:     at Module.require (module.js:362:17)
2012-12-11T17:42:32+00:00 app[web.1]:     at Module._compile (module.js:449:26)
2012-12-11T17:42:32+00:00 app[web.1]: TypeError: Cannot read property '_serverState' of undefined
2012-12-11T17:42:32+00:00 app[web.1]:     at Function.Module._load (module.js:312:12)
2012-12-11T17:42:32+00:00 app[web.1]:     at Object.<anonymous> (/app/node_modules/mongoskin/lib/mongoskin/index.js:2:10)
2012-12-11T17:42:32+00:00 app[web.1]: 
2012-12-11T17:42:32+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:467:10)
2012-12-11T17:42:32+00:00 app[web.1]:     at require (module.js:378:17)
2012-12-11T17:42:33+00:00 heroku[web.1]: Process exited with status 1
2012-12-11T17:42:33+00:00 heroku[web.1]: State changed from starting to crashed

Any help on what might be causing the problem would be highly appreciated.

You need to just update mongoskin library. Replace this line:

"mongoskin" : "0.1.x"

with

"mongoskin" : ">= 0.3.6"

More details here