def METHOD_NAME(db_path):
    if db_path is None:
        raise ConfigError("No database path is given.")
    # make sure someone is not being funny
    utils.is_profile_db(db_path)
    profile_db = db.DB(db_path, None, ignore_version = True)
    if str(profile_db.get_version()) != current_version:
        profile_db.disconnect()
        raise ConfigError("Version of this profile database is not %s (hence, this script cannot really do anything)." % current_version)
    profile_db.disconnect()
    # drop entry ids one by one
    for table_name in tables:
        drop_entry_id_column_from_table(db_path, table_name, table_properties=tables[table_name])
    # set the version
    profile_db = db.DB(db_path, None, ignore_version = True)
    profile_db.remove_meta_key_value_pair('version')
    profile_db.set_version(next_version)
    profile_db.disconnect()
    progress.end()
    run.info_single("Your profile db is now version %s. %d of its tables were cleaned from a historical "
                    "design artifact." % (next_version, len(tables)), nl_after=1, nl_before=1, mc='green')