Fix to raise AttributeError "You are in a dry run, and cannot access the ORM" + changes in assetcategory's data migration