added json validation to the db updater, added tests for same