commit get_record factored, old code still in place, but commented out