Revert the mongodb connection to as per @shadyvb suggest