add guid function, use is as primary key