Using other primary keys than _id. Closes #237.