NPE in AppErr handler fixed; old DB files removed