recover from test runs that leave the database in a bad state