Adjusted database query to only select participants that have not reached their final message.