job_run: output files now written to db
test: moved about some tests