fix dsn is instance of PDO