Postgresql Insert Into Array Javascript Length Text