add persist method
set primary key on create