Postgresql Find Index Of Array Json Javascript Array Contains