Change all ids from ints to longs to prevent overflow.