I should have named my key like “Player_1234567” when saving the purchase history. It would have made things easier.