Add join logic for basal profiles