added primaryKey to db.createCollection #947

fixes #947