KRACOEUS-6294: converting to KRAD, fixing sql scripts