   `mw` varchar(31) default NULL,
   `toolid` int(11) default NULL,
   `priority` int(11) NULL,
-  PRIMARY KEY  (`id`)
+  PRIMARY KEY  (`id`),
+  UNIQUE KEY `toolname` (`toolname`,`instance`)
 ) TYPE=MyISAM CHARACTER SET `utf8`;
 
 # --------------------------------------------------------

  KEY `mid` (`mid`),
  KEY `uid` (`uid`)
) TYPE=MyISAM CHARACTER SET `utf8`;

  `uid` int(11) NOT NULL default '0',
  `ordering` int(11) default '0',
  `version_id` int(11) NOT NULL default '0',
  `name` varchar(255) NULL,
  `organization` varchar(255) NULL,
  PRIMARY KEY  (`toolname`,`revision`,`uid`,`version_id`)
) TYPE=MyISAM CHARACTER SET `utf8`;

