Fixed an issue where the unauthenticated were able to do admin functions, when they're not supposed to. Retrieved data from database for the report and modified the report.