db updat after sent