Process required to get data into local database: 1. 2. getSurveys.php (identifies the surveys and calls: getData.php to import the data) 3. getQuestions.php getQuestionsData.php Then the reportTemplate.html will work correctly backup database: mysqldump -u username -p > backup.sql restore database: mysql -u username -p < backup.sql SURVEYS: SV_cwKjMqAqGxImjMG - Is the correct template one! SV_3pyZVUNpxXm1PZI - is a baaaad one! TESTING: get_qid_counts.html provides the ability to test the various splicing and dicing with specific questions against a specific survey. This connects directly to get_qid_counts.php