(Speed improvement) Rearrange/change SQL for easier (compare) read from sickbeard

Rearrange/change SQL for easier (compare) read. Split snatched,
downloaded.

Split downloaded and snatched
Use > instead of != in sql statement (speed improvement)
Use same variable names and sql statements

templates:
Progressbar percentage calculated in python (speed improvement)
Change set auto max number episodes for sorting downloads