use activerecord query interface instead of deprecated finder methods
quote column name for mysql
upgraded to rails v4.0.2