def __plugin_list(data, db):
    """
    Get plugin list in vulnerability database

    :param data: PlecostDatabaseQuery object
    :type data: PlecostDatabaseQuery

    :return: results of query
    :rtype: str
    """
    res = []
    res_append = res.append
    res_append('[*] Plugins with vulnerabilities known:\n')
    for i, x in enumerate(db.raw(
        'SELECT DISTINCT(plugin_name) FROM PLUGIN_VULNERABILITIES;').fetchall()
        ):
        res_append('    { %s } - %s' % (i, x[0]))
    res_append('\n')
    return '\n'.join(res)
