--fixed for CRM-12155

Initially when contact was deleted permanently contribution, membership and participants rows get deleted for contact because of ON DELETE CASCADE, its related rows for contribution, participant were not deleted since there was no BAO handling for contribution and participant.