Update refresh_feeds()

* Fix some errors with feed parsing and feeds with errors
* Update SQL queries according to https://links.phyks.me/?rqFh7w