moved torrent table parsing around to facilitate parsing in search (and ...

...remove dupe code). Added file table parsing where available