Bacterial Metabolism in Wastewater Treatment Systems