Microbial niche nexus sustaining biological wastewater treatment