Make external_id unique