Postgresql String To Array Get Element From Array Javascript