Move function to bottom for clarity.
Add dbName setter to reader. More logging.