 -- Table structure for table `controllers`
 --
 
-CREATE TABLE `controllers` (
-  `controller_id` mediumint(8) UNSIGNED NOT NULL,
+CREATE TABLE IF NOT EXISTS `controllers` (
+  `controller_id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT,
   `controller_name` enum('home','curriculums','create-curriculum','create-curriculum-subject','create-requisite','set-curriculum-enable','students','create-student','edit-student','create-student-subject','subjects','create-subject','subject-offers','create-subject-offer','open-enrollment','educations','create-education','courses','create-course','rooms','create-room','users','create-user','groups','create-group','edit-group','deactivate','edit-user','database','report-info','log','permissions','last-logins','','edit-room') NOT NULL,
   `controller_description` varchar(50) NOT NULL,
   `controller_admin_only` tinyint(1) NOT NULL DEFAULT '0',
   `controller_enrollment_open` tinyint(1) NOT NULL DEFAULT '0',
-  `created_at` int(11) NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+  `created_at` int(11) NOT NULL,
+  PRIMARY KEY (`controller_id`),
+  UNIQUE KEY `controller_name` (`controller_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
 
 --
 -- Truncate table before insert `controllers`

  `deleted_at` int(11) DEFAULT NULL,
  `deleted_user_id` int(11) UNSIGNED DEFAULT NULL,
  `updated_at` int(11) DEFAULT NULL,
  `updated_user_id` int(11) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Truncate table before insert `courses`

-- Table structure for table `educations`
--

CREATE TABLE IF NOT EXISTS `educations` (
  `education_id` int(8) UNSIGNED NOT NULL AUTO_INCREMENT,
  `education_code` varchar(50) NOT NULL,
  `education_description` varchar(50) NOT NULL,
  `created_at` int(11) NOT NULL,
