made mongodb accessible in app.js