Updated getNextProfile to fetch profiles from a list and get data from a
user ID