Added primary key to inputs