backports last two commits from PR13243:
ec3073a27 index: Move index DBs into index/ directory.
89eddcd36 index: Remove TxIndexDB from public interface of TxIndex.
https://github.com/bitcoin/bitcoin/compare/89eddcd36~1..ec3073a27
(these diffs are co-dependent and need to be brought in as one)
Depends on D2933 D2934 D2937 , and D2932