KCINFR-979: Fixing db scripts failure