coded method 'ConnectToMongo()'