def get_country_name_from_iso3(input_database, iso3):
    """
    Return the country name matching with a given iso3 code using the bcg table
    """
    country_list = input_database.db_query(
        "bcg", column="Cname", conditions=["ISO_code='" + iso3 + "'"]
    )["Cname"].tolist()

    return None if len(country_list) == 0 else country_list[0]