some changes in save assignment, message entity and dao.