Postgres Loop Through Array Backwards Text