- added a switch for php 5.3 / php 5.4 and used seperate mongo connections for each version