Made rss.py work with new database