add db upgrade test