public function initTable()
    {

        // If table not exist ,create the table
        $tableExist = $this->db->query("SHOW TABLES LIKE '{$this->table}'")->execute();

        if (!$tableExist) {
            $sql = "CREATE TABLE `$this->table` (
                            `{$this->idCol}` VARBINARY(128) NOT NULL PRIMARY KEY,
                            `{$this->dataCol}` BLOB NOT NULL,
                            `{$this->lifetimeCol}` MEDIUMINT NOT NULL,
                            `{$this->timeCol}` INTEGER UNSIGNED NOT NULL
                            ) COLLATE utf8_bin, ENGINE = InnoDB;";

            $result = $this->db->query($sql)->execute();

            $tableExist = $this->db->query("SHOW TABLES LIKE '{$this->table}'")->execute();

            // Check table creation result, if not throw error
            if (!$tableExist) {
                throw new Exception('Fail to create database session table');
            }
        }
    }