Script to update database: convert strings to jsons