Create script to query email logs in the database.