Arrays of value into postgre

Hi there ! I have problem with my scripting is that

my data is coming as an Arrays of value and I want this values dump in postgresql as individual columns.

i,e Like If my array of values are 10 I want this values store in individual (10) columns in the database.

How can i do this>.

I have basic structure like this but what if I get 10 arrays of values to 100 values I have to manually write so much.

see below.

This is basic of getting values from hardware

This is how i store it into function node

Function node syntax

Now this function node script can be used in another function node.

Data to database node script