merged in code to show detail of failure if dbopen fails