Rename table and add primary key