Update message example to use DAO