CREATE TABLE tags (index DECIMAL, id DECIMAL, tag TEXT)
CREATE TABLE torrents (groupname TEXT, totalsnatched DECIMAL, artist TEXT, groupyear DECIMAL, releasetype TEXT, groupid DECIMAL, id DECIMAL)

which tags exist?
SELECT DISTINCT tag FROM tags
SELECT DISTINCT "tag" FROM "tags"