Schema: add mode column to job table

Updated the database code to include the mode when inserting
into this table.