Populate primaryKey