rework-testing: Don't use the previous environment to clean the database before a test run, but instantiate the database connection directly.
Part of #8169.
Authored by: rblank 2009-04-26
Parent: [r8155]
Child: [r8157]