updated mongoose.js and config.js