added better insert fail check on sso_migrate