dbcheck: test the --reindex option