Fixed if-else for whether HTTP requests should be logged to a file
Now creating the ESDR client upon database init