Improved DB-level DAS-setting code and added view/folder level