access database and update with js code in wix

Hello Wix Code Community
I created User dashboard page and added some buttons to watch some ads to increase his earning.
Now i want that when he click on the button it will increase the 0.04$ earning of the user in the database with js code .
any solution please.
Dataset Name : profile
Label : earning

I’m afraid you’ll need to hire someone to have this done for you.