updating message statuses and changing api to use external id