Adjusting for generated query to resolve issues with copying from DBs without primary keys.