updated server.js to include mongodb