Added command to purge addons from database (bug 999119)

Add a simple safeguard against SQL injections just in case ? `addon_id = int(addon_id)` and use `%d` when formatting ? If know it's supposed to be an internal command, but you never know...