update second tables