ensure that DOIs are stored as doi, not as externalIds