testing db connection error theory