I think, based on reading some articles on Wix Help, that the reason my code for inserting, updating and deleting doesn’t work on the Live site is because those functions need to run server side.
My question is where do I put that code? In the master.js file or somewhere else?
What do you mean by wixdata.user? There is no such thing.
The wix-data API is available in front end and backend. However, the wix-users API is only available in front end, while the wix-users-backend API is only available in backend code.
Check the documentation for each API to see where it can be used.