Quoting fix, text -> string map

Previous change made queries generated by ActiveRecord incorrectly quoted, this fixes it.
Also uncommented/added text->string types mapping.