use console.error() rather than log() to log mongo connection errors