Refresh job database

Is there a way to reload the database ingame? I have a script that creates a new job and I would like to assign the job to the player, but it doesn’t work.

xPlayer.setJob(fname, 1)

= The job, grade or both are invalid