added cleanup of jobs table