Added command to purge addons from database (bug 999119)

is `default` the master db ? I'd use `router.db_for_write()` instead.