Updated createPrimaryCollection to use get_or_create_datastore endpoint.