BibUpload: check DOI uniqueness

* Before uploading a record, ensure that possible input DOIs
  are unique in the database.  (closes #1160)

* Currently contains hard-coded 0247_ field for DOI.  To be
  amended when time permits.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>