changes to dois code to fix valid url check and to place load of doi db just before queries