Revert "Merge pull request #440 from dimagi/sqlreport"

This reverts commit 792146e847e0241cded22d21a44588a3ba456819, reversing
changes made to e5a20b4b0718047dda3245d871606bb205b822a1.
Merge pull request #443 from dimagi/revert-broken

Revert "Merge pull request #440 from dimagi/sqlreport"