Fix rankings in webclient for text database