Upgradefix

fixes for bugs #6449 that wipes user data upon upgrading 
and 
for #5843 that was about deletion of configured postgresql.conf file from previous installation