Get the primary key and populate default data