add config to control whether load torrents from database cache