That doesn't help me decide for you
It will probably take you somewhere in the 20-30 hours to learn enough of the basics of PAL programming and SQL to automate that task.
If you'd hire someone to build the PAL script for you, it will probably take only 2-3 hours, but obviously costs the hourly rate of the programmer. (For example: I usually take 40 EUR / hr and sometimes give a discount down to 25 EUR / hr if I feel like the script could be reused for other projects or resold to other people with the same problem)
I will gladly point you to tutorials on MySQL and PAL scripting if you'd like to learn how to do it yourself.