Modeling microbial processes in porous media