Help with database table works only on preview not live

So, i made a button that displays something on every ones page and it worked on the preview but when i send it live it dosent work whyyyyy

The preview and live systems have 2 separate databases. If you are relying on data that’s entered into the app, and your live database is empty, that could be the problem.

How do I edit the live database