Though this is easily considered the practice of engineering and would typically require a P.E. to design in most states, a good textbook on the subject is "Wastewater Engineering: Collection and Pumping of Wastewater," by George Tchobanoglous, Metcalf & Eddy, Inc., 1981 (ISBN...