Fixed code to add mongodb indexes.