Moved quantity checking to InventoryActivity.

It appears the database cannot be accessed outside of a context. Objects (specifically ListItem) could keep of the context they were created in.