added a generate uuid function so that id can now be quereyed
Fixing an issue with VillageID comparisons