add more detailed comments to base page file

also rejiggered order of sqlQuery declarations to prevent accidental breakage when changing mySpreadsheet