TMART-63 - Changing controller because the analysisModifier should only be called by Across Trials code. Updating some SQL code to reflect postgres needs.