If I want to update database of moralis from the smart contract how to do it.
You can create a cloud function that reads your events on the smart contract and then updates the DB class as required.
You can see how to do it here -
Syncing events from Moralis
Thanks a lot for the help