Mapping external database fields for external database authentication