Checked for null persisted value for new dbs
Added update functionality to counter columns
Added missing imports.