db migration bug fixed