Check for _grids existing before getting all grids
Consistent capitalisation in SQL
Add error handling for CGI handler
Add header row
Merge pull request #7 from scraperwiki/grids

More fixes to grids