Changed the way inventories is saved and the way backups are handled