getTorrentIDRoot.
Some cleanup of TorrentDBHandler.
Some cleanup of MyPreferenceDBHandler and unit test update.