SQL Reporting

SQL Reporting classes (depends on sql-agg).