[core] pep8ify coretasks.py

Issue #125
[db] For some reason, the sqlite filename was saved to the core section rather than the db section

As such, configuring a sqlite db didn't work.