minor version with Postgres CASCADE delete