fixed can not migrate db on first clone