Use mongoUri to connect to mongodb