Add comments to explain ItemDB changes

Add comments to explain changes to the ItemDB class.