Identity sql fix