remove legacy activerecord dependency