The MongoClient and Db constructors are described in the manual. When should you use one and when should you use the other?