fix primaryKey / remove virtual IDs