fixed migrating db