Updated the SQLite Library, Fixed topratios are sorted by string, code
clean-up