add partitioned option to createCollection