Clear usage database
Restore previous permissions