Fixed mongodb connections