 /******************************************************************************/
 ---# Creating mentions table
 CREATE TABLE IF NOT EXISTS {$db_prefix}mentions (
-  content_id int NOT NULL default '0',
-  content_type varchar(10) default '',
-  id_mentioned int NOT NULL default 0,
-  id_member int NOT NULL default 0,
-  `time` int NOT NULL default 0,
+  content_id INT DEFAULT '0',
+  content_type VARCHAR(10) DEFAULT '',
+  id_mentioned INT DEFAULT 0,
+  id_member INT NOT NULL DEFAULT 0,
+  `time` INT NOT NULL DEFAULT 0,
   PRIMARY KEY (content_id, content_type, id_mentioned),
-  INDEX content (content_id, content_type),
-  INDEX mentionee (id_member)
+  INDEX idx_content (content_id, content_type),
+  INDEX idx_mentionee (id_member)
 ) ENGINE=MyISAM;
 ---#
 

		// Insert the new data
		if (!empty($inserts))
		{
			$smcFunc['db_insert']('', '{db_prefix}pm_labeled_messages', array('id_pm' => 'int', 'id_label' => 'int'), $inserts, array());
		}

		// Final step of this ridiculously massive process


	$smcFunc['db_query']('', '
		DELETE FROM {db_prefix}board_permissions
		WHERE id_group = {INT:guests}
		AND permission IN ({array_string:illegal_board_perms})',
		array(
			'guests' => -1,
