def get_db(self, db='test'):
        """
        Get a db instance
        :param db: database name
        :return: the motor db instance
        """
        if db not in self._db:
            self._db[db] = self.client(db)[db]

        return self._db[db]
def get_db(self, db='test'):
        """
        Get a db instance
        :param db: database name
        :return: the motor db instance
        """
        if db not in self._db:
            self._db[db] = self.client(db)[db]

        return self._db[db]
def get_db ( self , db = 'test' ) : if db not in self . _db : self . _db [ db ] = self . client ( db ) [ db ] return self . _db [ db ]
Get a db instance
        :param db: database name
        :return: the motor db instance
Get a db instance : param db : database name : return : the motor db instance