Postgresql Javascript Array Find Example