new class JobCondition
add test class for db operations