fixed php mongo connection init code.