Starting to add logging for accessing the DB.