Fixing column names in indexes and smallint support

* Added quotation around index column names to prevent errors such as using "key" as a column name
* Added smallint support