primary keys now work
fixed bug in pk handling of documents with no declared pk or _id