Avoid joins across schemas

This uses an sql call to find the jobs, and then uses native amber/banjo calls to determine statistics.
If job file can be other than master or comaster , additional checks might need to be added here.  Otherwise, the changes looks good.