Fixed permission bug in special reports

also updated the test data migration file for new database structure.