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

This reverts commit 03c529a7f10a25bcba6b7cfe22459c3866b0bfc8, reversing
changes made to 6d3a97e2e66c83803677d94ca55de04df33530f8.