if anyone else interested in creating this function, I changed it to include hyphens so people with hyphenated last names will be correclt fixed. Just add this into your SQL area of phpmyadmin (be sure to change the delimiter at the bottom of that page to a tilde)
CREATE FUNCTION CAP_FIRST (input VARCHAR(255))
RETURNS VARCHAR(255)
DETERMINISTIC
BEGIN
DECLARE len INT;
DECLARE i INT;
SET len = CHAR_LENGTH(input);
SET input = LOWER(input);
SET i = 0;
WHILE (i < len) DO
IF (MID(input,i,1) = ' ' OR i = 0 OR MID(input,i,1) = '-') THEN
IF (i < len) THEN
SET input = CONCAT(
LEFT(input,i),
UPPER(MID(input,i + 1,1)),
RIGHT(input,len - i - 1)
);
END IF;
END IF;
SET i = i + 1;
END WHILE;
RETURN input;
END;
CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X