taming active_record