setup activerecord