modefied error reporting on db connection