Using MongoClient for mongo connection.