Added database upgrade functionality for plugin update.
gh-6 fixed.