Database reset done properly