Use ActiveRecord quoting for table and column names.

Based on #30.