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.