Updated the message dao to insert.