You can go to System Maintanence(webpage or local panel by USB) to take backup / restore database procedure  before/after upgrade firmware.