Merge pull request #431 from kenzai/quote-tag-id

Quote any references to tag.id in raw sql
[#432][#403][#433][#422] Fix checking for column cache until db connects

Specifically see,
https://github.com/mbleigh/acts-as-taggable-on/issues/432#issuecomment-30769459
Merge pull request #438 from bf4/fix_cached_tag_columns_check

[#432][#403][#433][#422] Fix checking for column cache until db connects
Improved performance with counter_cache for tags (tag.taggings_count), taken from https://github.com/lichtamberg/acts-as-taggable-on/commit/52836c54d9abf1cc77be4df7b4c61cea90869c50