Fixed a bug preventing the database from removing items from storage units, and another preventing items from being read as members of product groups.