Evaluation of the microbial diversity and heavy metal resistance genes of a microbial community on contaminated environment