create table tags ( id bigint(20) AUTO_INCREMENT NOT NULL, overlay varchar(1024) NOT NULL, filepath varchar(1024) NOT NULL, ttype_id bigint(20) NOT NULL, tid bigint(20) NOT NULL, PRIMARY KEY (id), KEY ttype_id (ttype_id), KEY tid (tid), KEY overlay (overlay), KEY filepath(filepath));