fixed queries in report.php and table-handling in function.php to handles changes to reviewreport table