change date and update db