Created the setQueryResultsDb() method -- factored out from onCreate().