CORE-5772: finished migrating the job services to the new database structure