Yeah, do what Jynx wrote..
Tho, let the top of the soil dry out first, or the diatomaceous earth won't have any effect, as the way it works is by entering whatever place it can in the bugs, and soaking the fluids from their bodies. So if you pour it on a wet soil, it's just gonna soak up the water in the soil instead and be useless.