There was a way to prevent a database from being re-opened, by creating a column constraint that references a table with a higher id.