Modified SQL code: renaming for consistency. Temp tables created in results_schema, switches. Added pref score graph to test code
Merge branch 'master' of https://github.com/OHDSI/CohortMethod

Conflicts:
	R/TestCode.R