Added escaping of column names to avoid SQL keywords.