fixed issue with mongoose.connect configuration