Improving backup of db and vlan prefs reinstating the correct permissions