Remove activerecord dependency