adding activerecord