Adds db connection error logger