We shouldn't store UIDs (and indeed aren't currently, it's just a made up number). Refactor to remove UID and add an surrogate key.