Fixes a query bug for jobs
Adds a -lj and -ljn option for plow-tool.