-logging on populateDB and db
-optimised db connection to return dictionary