Generate a unique ID for the message. Once the page has loaded using the unique ID, pull message from database, display and remove appropriate database entry.
If the page is reloaded the message will no longer exist in the database and throw an error.