After my mongodb database grows quite a bit I decided to shard the collections. So i created a new sharded cluster and imported my old data to the cluster using mongorestore