Cleaning up TorrentDBHandler.
Merge.
Added two generic methods for TorrentDBHandler.