Removing activerecord dependency.