re-write total_jobs/total_projects to use more sqlalchemy method in place of list comprehension