Extract Fields from JSON and Upsert into Table Using SingleStore Stored Procedure