added logging functionality to downloadHatebase