CREATE TABLE TAG (
    `name` TEXT NOT NULL,
    `color` TEXT NOT NULL,
    `unread` INTEGER NOT NULL,
    PRIMARY KEY(`name`)
);

CREATE INDEX tag_name ON TAG(`name`);

tags:
SELECT * FROM TAG;

insertTag:
INSERT OR REPLACE INTO TAG VALUES ?;

deleteAllTags:
DELETE FROM TAG;

deleteTag:
DELETE FROM TAG WHERE `name` = ? AND `color` = ?;