flush db on teardown