add primary key, foreign key