Postgresql Insert Into Array Javascript Iterations Matlab Simulink