ignore PyCharm files
use prepared statement with Cache.put too
reformat file to better follow PEP8
ignore *.pyc and movies.db
simplify condition
removed trailing blank lines (pep8)
use modern style classes
made Cache.get_conn static
removed a blank line (pep8)
slightly more natural and simplified sql
dropped unnecessary ; in sql statements
Revert "appied suggestions"

This reverts commit 9a57dcf5e7d9aef77270945e7958abca0aefb5c9.
merge
Merge branch 'janosgyerik-code-review'
merge