Update ion_auth_mongodb_model.php to make it work out of the box

With these fixes, ion_auth_mongodb_model.php will work out of the box. Haven't thoroughly tested, but it passed the smoke test.
Merge pull request #484 from yvanoers/2

Update ion_auth_mongodb_model.php to make it work out of the box