add gitignore.
add sparse index support to ensureIndex.