this is a little off topic, for gnat prevention, next time you grow in soil put an inch or two of large coarse perlite on top of the soil, gnats won't bother with it.
neem will kill the gnats, as for their larvae, next time you water add 5 drops of dish soap per gallon of water, it kills them.