check db connection error