I doubt it was nitrates that killed your fish as they can withstand very high nitrates where your crabs and snails will die long before any fish.
What fish are you considering to put in the tank?
Best detrious eaters IMO are bristle worms, pods, nassarius snails, scarlet reef hermits. a 29g...