Running update or findAndModify on db.system.indexes with upsert=true will create the db.system.indexes collection.