Update index.js to include mongoose connection error