Regresion indexing backend using tdb

Extracted from https://github.com/openchange/openchange/pull/91