switch to activerecord module