In postgres at least, Wouldn't your framework create a db transaction that then is rolled back at the end of the test?