Added getJobTable() function to get jobs from database