INSERT INTO gentoobrowse.categories(name)
SELECT ?
WHERE (NOT EXISTS (SELECT name FROM gentoobrowse.categories WHERE name = ?))
