Generate a new unique identifier in SQL