Unnecessary inventory properties are no longer sent to database, items loaded are given their properties locally, misc refactoring