Add primary key setting