Write to the database when the module unloads
Merge pull request #1 from Techjar/patch-1

Write to the database when the module unloads