def select_db(cli, dbname):
    """
    Select a database with name
    :param cli: Client instance
    :param dbname: Database name
    :return:A database object
    """
    db = cli[dbname]
    return db