More functions in dbjobs.py