Performance tuning of quota_report

Replacing direct joining to slow views with temporary tables.