added error listener on mongodb connect