re-enable NO_WRITE mode
add_job should return the lastrowid
first version of fleshed out sqlite code
now JobTable contains a SqlTable instead of deriving from one
fix a bunch of bugs, make types more consistent, etc.