good point

now edit table is into an array
next step, make the insert/update queries