add primary key and change str to int