restructuring
queries are stored in SQL
first idea commit
trialfactory details
TrialFactory refactoring in MainActivity. Renamed Query>QueryDB.
moved from QueryDB to Trial as list objects, refactoring
- database handler  now uses Trial objects and the database records all of that information
- mainactivity now uses TrialFactory
implemented setdefaults in mainactivity
DEBUG now prints DatabaseHandler types
Trial now has a method which outputs its string form (mostly for easy debug)
added support for modifyQuery
inspection updates the database. removed the extras pushing into modifyActivity
debugged refactored code. fixed date bug. removed obsolete code.
fixed crashing on back while list is not finished
Merge branch 'master' into newmode