refactored database.py to use rss plugin, fixed plugin