Mongo DB access made consistent using mongoose.