[testDBTablesHost] Fix the broken test due to making the index unique.

This commit should be merged into the previous one.