Revert "Update for MongoDB connectoin"

This reverts commit 8c90cfb3b97cc37e056bc6fa5e2877d1e062af43.
Revert to check error