add code to update db table with the sent timestamp