mongoose checks for an existing connection before trying to make one. Also check if its currently trying to connect.