Postgresql Plpgsql Loop Through Json Python Scripting For Freecad