Update app.js

add db.close() in mongo conversations