self.close() instead of cursor.close()

Fixes "Cannot operate on a closed database" when there is no sickbeard.db. As reported here:

https://sickrage.tv/forums/forum/help-support/bug-issue-reports/4003-after-update-now-getting-closed-database-handler-error