TrialFactory refactoring in MainActivity. Renamed Query>QueryDB.