Added active record object to domain mapping and vice versa