fix copy from for tables without primary key

_id was always set to an empty string because "pks" is an
empty list if create table was used to create the table but
no primary keys have been defined.