In the screenshot below, you can see that a user has selected certain records as their favourites.
When a user marks a record as a favourite, an Ajax call is made from the interface to insert a record into the database table 'UserRecords'.
The records…