use activerecord query interface instead of deprecated finder methods
upgraded to rails v4.0.2