A try to speed up database resetting for testcases.