Script to update database: convert strings to jsons - rescuing exceptions