.save rating to blank fields and update users rating on a single row only, without adding more duplicate rows

hi I’m having difficulties inserting an overall companies rating and numRatings into 1 database all on the same row! that correlates to the right persons unique id, so one row gets updated with the ratings only and doesn’t add multiple rows once a review has been submitted,

i want the row with the three arrows to be inserted to the single row with one arrow?


Im still yet to find an answer on this, i have since placed a before insert hook on the database MemberProfile to stop duplicate rows from inserting based on _owner id’s which is fine but I still need a single row to update the users rating and numRatings?