Less naive database name extraction from DSN