DB upgrade scripts and modifications to upgrade UA KC 3.1.1 to KC 5.2.1