DROP TABLE IF EXISTS search_cids;
CREATE TEMPORARY TABLE search_cids (cid integer PRIMARY KEY NOT NULL);