Batch update json to db