Fix exception caused by column names with single quotes

Also rename some test files so they match the Makefile regex.  They will be included in the test suite from now on.
Merge pull request #507 from brianc/issues/507

Unexpected identifier with pg versions > 2.3.1