message model updated, new endpoint is added for unread message count