Add Authentication mode to mongodb connection