db_migration bug fix