Modified app.js to request data from MongoDB