Added command to purge addons from database (bug 999119)

I'll just leave it for now. Not sure how it would handle the constraint and it's already written.