now adds index to results-current.sqlite for better speed.