Correctly delete windows and holes from the database