adding messagetnManager and Dao