added logging to database.py
autopep8ed database.py
added a todo
renewed imports
added logging to feed.py
autopep8ed feed.py
fixed a typo