Removing mongodb hard dependency part 1. Indexing is now generic.