$tableName = "user_type";
$sql = "";
$sql = "CREATE TABLE `$tableName` (
`id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` CHAR(120) NOT NULL
) ENGINE = InnoDB;";
echo $this->db->query($sql);
$sql = " INSERT INTO `$tableName` (`id`, `name`) VALUES
(1, 'user'), (2, 'provider'), (3, 'admin')";
echo $this->db->query($sql);