Including column base_of_record in database