Added config.db.index.

instead of hardcoding the same indexname all over, this patch changes to a configurable one.