Use heuristic to derive database name from DBI DSN.