Postgresql Javascript Array Methods