Implemented DB halt.
Implemented DB destroy and refactored filename switching.
Implemented proper DB clean-up after tests.