Fixed code to add mongodb indexes.
Merge pull request #218 from jaredbischof/master

Fixed code to add mongodb indexes.