Fixed wrong field type for torrent_id in SQLite filterdb

Also fixed incorrect parenthesis in log statement