fix dbmigrate