custom collection name

pass the collectionName as the third argument

OR

var UserInfo = new Schema({
username : String,
password : String
}, { collection: ‘userinfo’ });