Postgresql Find Index Of Array Json Javascript Array Push Vs Concat