Postgres Insert Into Array Javascript Appendchild Not Working