updated server.js for mongolab