Simplified some getInstance() statements.
Simplified getTorrentID().
Some more cleanup for TorrentDBHandler.