add basic activerecord support