Unified all data sources for using the same criteria with "'" in items name in SQL queries.
[SCM] Removed old code except People and Companies Summary (should me move to a study).