Change UUID to primary key for AppNode