Added command to purge addons from database (bug 999119)

Yes, but you should store `router.db_for_write(Addon)` in a variable in order to be able to re-use this instead of `'default'` everywhere in the file.