Fix up the workflow population plugin for weird statuses and also give S...

Fix up the workflow population plugin so it doesn't die on null and unknown status. 
Also give SPB a script for fixing the DB going forward.