added line to delete from flat table2 when patient is voided