Dynamic profile page (help) how to make individual ratings & reviews on a repeater to that specific persons profile

Hi guys/girls just after some help i’ve followed this tutorial https://support.wix.com/en/article/corvid-adding-ratings-and-reviews-to-a-wix-stores-site#step-2-set-up-the-shop-product-page
and changed some of the functions from product to my field name “profiles” that’s in my customer reviews database however it doesn’t work, here is the code

import wixData from ‘wix-data’;
import wixWindow from ‘wix-window’;

let profiles;

$w.onReady( async function () {
profiles = await $w(‘#Reviews’).getCurrentItem();
initReviews();
});

async function initReviews() {
await $w(‘#Reviews’).setFilter(wixData.filter().eq(‘itemId’, profiles._id));
showReviews();
loadStatistics();
}

async function loadStatistics() {
const stats = await wixData.get(‘review-stats’, profiles._id);
if (stats) {
let avgRating = (Math.round(stats.rating * 10 / stats.count) / 10);
let percentRecommended = Math.round(stats.recommended / stats.count * 100);
let ratings = $w(‘#generalRatings’);
ratings.rating = avgRating;
ratings.numRatings = stats.count;
$w(‘#recoPercent’).text = ${percentRecommended} % would recommend;
$w(‘#generalRatings’).show();
} else {
$w(‘#recoPercent’).text = ‘There are no reviews yet’;
}
$w(‘#recoPercent’).show();
}

export function reviewsRepeater_itemReady($w, itemData, index) {
if (itemData.recommends) {
$w(‘#recommendation’).text = ‘I recommend this Trader.’;
} else {
$w(‘#recommendation’).text = “I don’t recommend this Trader.”;
}
if (itemData.photo) {
$w(‘#reviewImage’).src = itemData.photo;
$w(‘#reviewImage’).expand();
}
$w(‘#oneRating’).rating = itemData.rating;
let date = itemData._createdDate;
$w(‘#submissionTime’).text = date.toLocaleString();
}

export function showReviews() {
if ($w(‘#Reviews’).getTotalCount() > 0) {
$w(‘#reviewsRepeater’).expand();
} else {
$w(‘#reviewsRepeater’).collapse();
}
}

export async function addReview_click(event, $w) {
const dataForLightbox = {
itemId: profiles._id
};
let result = await wixWindow.openLightbox(‘Review Box’, dataForLightbox);
$w(‘#Reviews’).refresh();
loadStatistics();
$w(‘#thankYouMessage’).show();
}

export function loadMore_click(event) {
$w(‘#Reviews’).loadMore();
}

Any suggestions? can this all be done with database references instead?