fixed mongodb connections issue.