This block should only be executed if the user has set up a results db.