My original plan was to write data to the database immediately after it was recorded on the blockchain, but I discovered several issues during implementation. First, the delay in recording data to the blockchain is inconsistent, which could easily cause database writes to fail. Second, there are security concerns: since only the wallet is connected, we can only perform basic validation. External users could easily bypass the frontend to send requests and tamper with database data. Even though the entire process is actually completed on-chain—with the database merely serving as a data display—this would still result in a poor user experience. Therefore, I decided to write to the database asynchronously. Although this introduces a slight delay, everything remains auditable on-chain, and the database is no longer at risk of tampering. This prevents the need to manually repair data in the event of malicious activity.