Avoid joins across schemas

This uses an sql call to find the jobs, and then uses native amber/banjo calls to determine statistics.