MessageRepository implementation