db: add_job can now optionally update the obs table and tile table

test for obs table also added.