added functionality to delete members investments when their account is deleted