import sqlite3


def get_parcel_names(
    parceldb_path, table_name="padus2_0fee", col_name="unit_nm"
):
    """
    Open spatialite database containing parcels and
    extract unique parcel names.
    """
    db = sqlite3.connect(parceldb_path)
    _query = f"""SELECT distinct {col_name} FROM {table_name}"""
    c = db.cursor()
    c.execute(_query)
    return [_[0] for _ in c.fetchall()]