Merge pull request #6 from scraperwiki/grids

Grids
Check for _grids existing before getting all grids
Consistent capitalisation in SQL
Add error handling for CGI handler