updates mongo connection events in app.js