Completed update.php, json is properly read into the database.