add prev_task_type to DB dupefinder constraints