Cleaning up a bit, dumpparser should work fine with some tweaking. Adding script that gets the number of articles in CAT:PEND and inserts it to the tsdb.