fixed db migration