message dao + tests