Pass dropped item amoutn in an extra value to the data store to fix the issue that picked up item amounts are not looged.
I actually have no idea why the old solutin was not working.