Fix inserting entities without PK