Merged &query_reporter and &query_esl into one single function that does both and also populates the DHCR SQLite database