The client knows you can't cast that spell, and prevents you from doing so, even if the database is corrected.
Also, there's two digits for each job, and they're in the order listed when you bring up your job list in game. The last 05 is SCH, DNC next to it, then PUP, so then BLU.