Implemented database reset mechanism.