add mongodb php driver config method