For the sake of clarification, here's an ingame macro script for unlocking all titles:
/script for i = 530000, 530999, 1 do ExecuteMacroLine("/gm ? give " .. i); end
Beware, it requires GM commands enabled (obviously) and the client might choke for a minute. It's from a thread where Drewww noted a few useful macros and uploaded SQL scripts. I'll be adding a link to that to my guide.