Simple and COMPLETE example of serving up and connecting to a MongoLab db with Nodejs, and inserting pixel data captured by an awesome pixel-tracker module. There's also a MySQL example baked in, should you decide to use that instead.
Can be tested with: https://github.com/martenc/javascript-tracker-via-cookie