Corrected ID generation (now it's a UUID  instead of an integer sequence)