Add error handling in index.txt DB parsing code.