Correctly set "delete reports" permission.
Small code cleanup
Changed some querysets to iterators.