To clarify: that's the current code that's in place - I didn't write any of it.
According to the comments in the code, you're supposed to use this table for the merit based titles.
Code:
create table titles (
id int UNSIGNED primary key AUTO_INCREMENT,
skill_id tinyint UNSIGNED NOT NULL,
skill_value mediumint UNSIGNED NOT NULL,
aa_points TINYINT UNSIGNED NOT NULL,
title varchar(32) NOT NULL
);
Dax