How do you write SQL queries to verify that application data is correctly stored, updated, or retrieved from the database?