fixed db migration issue