Fixing an issue that would cause an item being successfully added/updated to the session but not to the database table.