generate uuid, query and db/serializer safe