Decoding microbial community intelligence through metagenomics for efficient wastewater treatment