Added teardown to DBMiddlewareTestCase