Checked for null persisted value for new dbs
Added update functionality to counter columns
Added missing imports.
Merge pull request #1 from boneill42/master

Contribution from @leerobert