implemented database reset.