Testing processResults

This change highlighted several issues, mainly around storing a database reference in Job