avoid gratuitously calling db.driverName() multiple times