Change SQL in templates.

Split downloaded and snatched
Use > instead of != in sql statement (speed improvement)
Today's Next Episode removes correctly if today's date is snatched or
downloaded (fix)
Progressbar percentage calculated in python (speed improvement)
Episode totals corrected (fix)
Merge pull request #651 from Supremicus/nightly

Change SQL in templates.