for some of the records in the database, I could delete entries in table2 which were automatically deleted in table1. But for some cases, that didn\'t happen, even though they a