How do I make a like button for a dataset item

Hi guys, how do I make a like button. I understand I make a second database but was wondering if somebody could help me with the code

i need code to prevent duplicates

cheers

follow