fix setting id for taskParameters record & delete on cascade for task & taskParameters