Fix fix_doi and improve copy_into_db error handling.
Fix fix_doi and improve copy_into_db error handling.

bgyori/indra,pvtodorov/indra,johnbachman/indra,pvtodorov/indra,sorgerlab/belpy,pvtodorov/indra,johnbachman/indra,johnbachman/belpy,sorgerlab/belpy,bgyori/indra,sorgerlab/belpy,johnbachman/belpy,johnbachman/indra,sorgerlab/indra,bgyori/indra,sorgerlab/indra,johnbachman/belpy,pvtodorov/indra,sorgerlab/indra