Added escaping of column names to avoid SQL keywords. 

Here's the pull request I promised.

There may be other places where this sort of escaping should be done, not sure.

Lance