fixing db migration