Added logging on how long the db query took to retrieve data.