Specifically setting localhost for mongodb connections