def METHOD_NAME(db, feature_name):
    fields_info = [
            ('State', 'state', ""),
            ('AutoRestart', 'auto_restart', ""),
            ('SystemState', 'system_state', ""),
            ('UpdateTime', 'update_time', ""),
            ('ContainerId', 'container_id', ""),
            ('Version', 'container_version', ""),
            ('SetOwner', 'set_owner', ""),
            ('CurrentOwner', 'current_owner', ""),
            ('RemoteState', "remote_state", "")
            ]
    cfg_table = db.cfgdb.get_table('FEATURE')
    dbconn = db.db
    keys = dbconn.keys(dbconn.STATE_DB, "FEATURE|*")
    ordered_data = []
    fields = set()
    names = []
    if feature_name:
        key = "FEATURE|{}".format(feature_name)
        if feature_name in cfg_table:
            data = {}
            if keys and (key in keys):
                data = dbconn.get_all(dbconn.STATE_DB, key)
            data.update(cfg_table[feature_name])
            ordered_data.append(data)
            fields = set(data.keys())
            names.append(feature_name)
        else:
            click.echo("Can not find feature {}".format(feature_name))
            sys.exit(1)
    else:
        for name in natsorted(cfg_table.keys()):
            data = {}
            key = "FEATURE|{}".format(name)
            if keys and (key in keys):
                data = dbconn.get_all(dbconn.STATE_DB, key)
            data.update(cfg_table[name])
            fields = fields | set(data.keys())
            ordered_data.append(data)
            names.append(name)
    header = make_header(fields_info, fields)
    body = make_body(names, ordered_data, fields, fields_info)
    click.echo(tabulate(body, header, disable_numparse=True))