Added "Spectral" similarity and multithread DB access