Save hash database as per #2