   `QUERY` text NOT NULL,
   `USER` bigint(20) NOT NULL,
   `DB_KEY` varchar(45) NOT NULL,
-  PRIMARY KEY (`KEY`,`USER`),
+  PRIMARY KEY (`KEY`,`USER`,`DB_KEY`),
   KEY `USER_idx` (`DB_KEY`),
   KEY `UID_idx` (`USER`),
   CONSTRAINT `DB` FOREIGN KEY (`DB_KEY`) REFERENCES `DATABASE_CONNECTIONS` (`KEY`) ON DELETE NO ACTION ON UPDATE NO ACTION,

-- Adminer 4.2.0 MySQL dump

SET NAMES utf8mb4;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';

  `USERNAME` varchar(255) NOT NULL,
  `PASSWORD` varchar(255) NOT NULL,
  `JDBCINFO` int(11) NOT NULL,
  `DATABASE_KEY` varchar(45) NOT NULL,
  `DATABASE_NAME` varchar(255) NOT NULL,
  `HOST` varchar(255) NOT NULL,
  `PORT` int(11) NOT NULL,
