CREATE TABLE IF NOT EXISTS document_index ( domain TEXT NOT NULL, path TEXT NOT NULL, version DATE NOT NULL, PRIMARY KEY (domain, path, version) );