DB: add parameters argument to add_job method

This value is now written into the job table.
test: use plain filenames in db tests

These tests now use plain filenames (no path or extension) because
this what we will be storing in the database.