Postgres Loop Through Array Backwards Slash