Update app/models/MDb.php

Fix for allowing to connect to a replica set secondary
More fix for querying a secondary
Merge remote-tracking branch 'upstream/patch-1'

Conflicts:
	app/models/MDb.php