Core/Items: Correct randomProperlyId type when reading to/from DB

Ref #10446
Merge branch 'master' of github.com:TrinityCore/TrinityCore