Changed AddJob to write to db.