Document:

<PAGE>

                                                                    Exhibit 10.5

                     EXHIBIT 2 to RESTRICTED STOCK AGREEMENT
                     ---------------------------------------

                             Secured Promissory Note
                             -----------------------

US $435,000                  San Diego, California                  June 1, 2001

         FOR VALUE RECEIVED, the undersigned, James Roberto ("Maker"), hereby
promises to pay to the order of DAOU Systems, Inc., a Delaware corporation (the
"Company"), the principal sum of Four Hundred and Thirty Five Thousand Dollars
($435,000) with interest on the unpaid balance thereof from the date that such
principal amount was advanced until maturity at the rate per annum equal to
6.75% (the "Applicable Rate") computed on the basis of a 365-day year and actual
days elapsed, both principal and interest payable as hereinafter provided in
lawful money of the United States of America at the offices of the Company in
San Diego, California, or at such other place as from time to time may be
designated by the holder of this Note.

         The outstanding principal balance of this Note and accrued interest
thereon shall be due and payable in full on or before May 31, 2006.

         Maker shall have the right to prepay, without penalty, upon ten (10)
business days' notice to the holder, at any time and from time to time prior to
maturity, all or any part of the unpaid principal balance of this Note.

         All payments or prepayments received hereunder, shall first be applied
to any costs or expenses of enforcing this Note, next to accrued, but unpaid
interest, and then to unpaid principal.

         It is the intent of the payee of this Note and the undersigned in the
execution of this Note to contract in strict compliance with applicable usury
law. In furtherance thereof, the said payee and the undersigned stipulate and
agree that none of the terms and provisions contained in this Note, or in any
other instrument executed in connection herewith, shall ever be construed to
create a contract to pay for the use, forbearance or detention of money,
interest at a rate in excess of the maximum interest rate permitted to be
charged by applicable law; that neither the undersigned nor any other parties
now or hereafter becoming liable for payment of this Note shall ever be
obligated or required to pay interest on this Note at a rate in excess of the
maximum interest that may be lawfully charged under applicable law; and that the
provisions of this paragraph shall control over all other provisions of this
Note and any other instruments now or hereafter executed in connection herewith
which may be in apparent conflict herewith. The term "applicable law" as used in
this Note shall mean the laws of the State of California or the laws of the
United States, whichever laws allow the greater rate of interest, as such laws
now exist or may be changed or amended or come into effect in the future.

                                       1

<PAGE>

         This Note is secured pursuant to the terms of that certain Stock Pledge
Agreement, dated of even date herewith, by and between the Company and Maker,
pursuant to which Maker pledges to the Company, and grants the Company a
security interest in 1.5 million shares of the Company's common stock, par value
$.001 per share (the "Pledged Shares"), issued pursuant to that certain Stock
Purchase Agreement of even date herewith, by and between the Company and Maker,
and any dividends or distribution received with respect to, on account of, or in
substitution for, the Pledged Shares.

         Should the indebtedness represented by this Note or any part thereof be
collected at law or in equity or through any bankruptcy, receivership, probate
or other court proceedings or if this Note is placed in the hands of attorneys
for collection after default, the undersigned and all endorsers, guarantors and
sureties of this Note jointly and severally agree to pay to the holder of this
Note in addition to the principal and interest due and payable hereon all the
costs and expenses of said holder in enforcing this Note including, without
limitation, reasonable attorneys' fees and legal expenses.

         All notices, consents, waivers, and other communications under this
Note must be in writing and will be deemed to have been duly given when (a)
delivered by hand (with written confirmation of receipt), (b) sent by facsimile
(with written confirmation of receipt), provided that a copy is mailed by
registered mail, return receipt requested or (c) when received by the addressee,
if sent by a nationally recognized overnight delivery service (receipt
requested), in each case to the appropriate addresses and facsimile numbers set
forth below (or to such other addresses and facsimile numbers as a party may
designate by notice to the other parties):

                  If to the Company:        DAOU Systems, Inc.
                                            5120 Shoreham Place
                                            San Diego, California 92122
                                            Attention: ____________
                                            Facsimile No.: (858) 452-1338

                  With a copy to:           Baker & McKenzie
                                            101 W. Broadway, 12th Floor
                                            San Diego, California 92121-3890
                                            Attention: Abby B. Silverman
                                            Facsimile No.: (619) 236-0429

                  If to Maker:              James Roberto
                                            Address on file with the Company

         If any provision of this Note is held invalid or unenforceable by any
court of competent jurisdiction, the other provisions of this Note will remain
in full force and effect. Any provision of this Note held invalid or
unenforceable only in part or degree will remain in full force and effect to the
extent not held invalid or unenforceable.

         This Note shall bind and inure to the benefit of the successors and
assigns of the holder of this Note.

                                       2

<PAGE>

         This Note may not be amended except by means of a written agreement
signed by the holder of this Note and the Maker. No waiver of a right in any
instance shall constitute a continuing waiver of successive rights, and any one
waiver shall govern only the particular matters waived.

                                       3

<PAGE>

         THIS NOTE AND THE RIGHTS AND DUTIES OF THE PARTIES HEREUNDER SHALL BE
GOVERNED FOR ALL PURPOSES BY THE LAW OF THE STATE OF CALIFORNIA AND THE LAW OF
THE UNITED STATES APPLICABLE TO TRANSACTIONS WITHIN SUCH STATE.

"Maker"

/s/ JAMES T. ROBERTO
------------------------------
James T. Roberto

                        Signature Page to Promissory Note
                            Executed August 28, 2001,
               to be Effective as of the Date First Written Above<PAGE>

                                                                    Exhibit 10.6

                     EXHIBIT 3 to RESTRICTED STOCK AGREEMENT
                     ---------------------------------------

                             STOCK PLEDGE AGREEMENT

     This Stock Pledge Agreement is entered into as of June 1, 2001 (the
"Effective Date"), by and among DAOU Systems, Inc., a Delaware corporation (the
"Company"), and James Roberto (the "Pledgor"), with reference to the following
facts:

                              Background Statement

     The Company has agreed to sell to Pledgor 1.5 million shares of the
Company's common stock, par value $.001 per share (the "Shares"), pursuant to
                                                        ------
that certain Stock Purchase Agreement, by and between the Company and Pledgor,
dated June 1, 2001 (the "Purchase Agreement").
                         ------------------

     In addition the Company has agreed to loan to Pledgor $435,000 as evidenced
by that certain Secured Promissory Note (the "Note") dated June 1, 2001.
                                              ----

     As a material inducement for the Company to make the loan to Pledgor and to
enter into the Purchase Agreement, Pledgor has agreed to secure his obligations
under the Note by granting the Company a first priority security interest in the
Shares.

                                    Agreement

     NOW, THEREFORE, in consideration of the mutual terms, covenants and
conditions contained herein, the parties hereby agree as follows:

         1.       Security. The term "Pledged Stock" shall mean the 1.5 million
                  --------            -------------
Shares registered in the name of Pledgor, together with all certificates,
options, rights or other distributions issued as an addition to, in substitution
or in exchange for, or on account of, any such Shares, and all proceeds of the
foregoing, as further described in and subject to the provisions of Section 4
                                                                    ---------
below, now or hereafter owned or acquired by Pledgor.

         2.       Grant of Security Interest. As security for full and timely
                  --------------------------
payment, performance and satisfaction of the Obligations (as defined in Section
                                                                        -------
3), Pledgor hereby grant to the Company a first priority security interest in
-
the Pledged Stock. Upon the execution hereof, the Pledged Stock and any related
stock powers will be deposited in escrow with the Company pursuant to Section
1.9 of the Purchase Agreement.

         3.       Obligations of Pledgor. As used herein, the term "Obligations"
                  ----------------------                            -----------
shall mean all of Pledgor's obligations, covenants and agreements under the
Note.

                                       1

<PAGE>

         4.       Pledged Stock. In the event Pledgor will become entitled to
                  -------------
receive or will receive, in connection with any of the Pledged Stock, (a) any
stock certificate, including any certificate representing a stock dividend or
any certificate in connection with any increase or reduction of capital,
reclassification, merger, consolidation, sale of assets, combination of shares,
stock split or spin-off, (b) any option, warrant or right, whether as an
addition to or in substitution of any of the Pledged Stock, or otherwise, (c)
any dividend or distribution payable in property, including securities issued as
a dividend on the Pledged Stock, or (d) any other distributions of any kind
whatsoever, Pledgor will accept the same as encumbered by the security interest
created hereby, and will deliver the same forthwith to the Company as the escrow
agent (the "Escrow Agent"), in the exact form received, including as
appropriate, Pledgor's endorsement or appropriate stock power duly executed in
blank, as appropriate, to be held by the Escrow Agent, as a part of the Pledged
Stock, subject to the terms hereof; provided, however, that as long as no
Default (as defined in Section 7) is in existence, Pledgor will have sole voting
                       ---------
rights with respect to the Pledged Stock.

         5.       Representations and Warranties of Pledgor. Pledgor warrants
                  -----------------------------------------
and represents to the Company that: (a) he has the power and authority to enter
into this Agreement and has the power and authority to pledge the Pledged Stock
for the purposes described herein, (b) Pledgor is the legal and beneficial owner
of all of the Pledged Stock, (c) all of the shares of the Pledged Stock are
owned by Pledgor free of any pledge, mortgage, lien or security interest of any
kind, except as created hereby, (d) the execution and delivery by Pledgor of
this Agreement, and the performance of its terms, will not result in any
violation or default under the terms of any agreement or instrument, or any law
or governmental rule or regulation applicable to Pledgor or the Pledged Stock,
and (e) upon execution and delivery by Pledgor of this Agreement and upon
delivery of the Pledged Stock to Escrow Agent, this Agreement will create a
valid and perfected first priority security interest in the Pledged Stock, and
the proceeds thereof, subject to no prior security interest.

         6.       Transfer of Interests. Pledgor hereby covenants that, until
                  ---------------------
such time as the Obligations have been fully paid, performed and satisfied,
except as set forth in Section 1.2 of the Purchase Agreement, Pledgor will not
sell, convey or otherwise dispose of any of the Pledged Stock or any interest
therein, or create, incur or permit to exist any pledge, mortgage, lien, charge,
encumbrance or any security interest whatsoever in or with respect to any of the
Pledged Stock, or the proceeds thereof, other than the security interest created
hereby. No transfer shall be valid unless and until the transferee agrees that
such transfer is subject to the preexisting security interest created hereby and
such transferee executes a pledge agreement reasonably satisfactory to the
Company.

         7.       Default. As used herein, the term "Default" will mean the
                  -------                            -------
failure of full and timely payment or performance and satisfaction of any of the
Obligations.

         8.       Rights of the Company. Upon the occurrence of a Default, the
                  ---------------------
Company may, at its option, do any one or more of the following: (a) declare all
indebtedness of Pledgor to Company to be immediately due and payable, whereupon
all unpaid principal and interest under the Note will become and be immediately
due and payable; (b) exercise any and all of the rights and remedies of a
secured party as provided for by law; (c) proceed by an action or actions at law
or in equity to recover the obligations secured hereby or to foreclose under the
terms of this

                                       2

<PAGE>

Agreement and the Note and sell the collateral, or any portion thereof, pursuant
to a judgment or decree of a court or courts of competent jurisdiction; (d)
proceed immediately to have any or all of the Pledged Stock registered in the
Company's name or in the name of a nominee; (e) enforce one or more remedies
hereunder, successively or concurrently; and (f) proceed immediately to dispose
of and realize upon the Pledged Stock, or any part thereof, and in connection
therewith, sell or otherwise dispose of and deliver the Pledged Stock, or any
part thereof, in one or more parcels at public or private sale or sales, at any
exchange, broker's board or at any of the Company's offices or elsewhere, at
such prices and on such terms as the Company may deem best, for cash or on
credit, or for future delivery without assumption of any credit risk, with the
right of the Company or any purchaser to purchase at any such sale either the
whole or any part of the Pledged Stock (in connection with any such sale or
disposition, the Company need not give more than thirty (30) calendar days
notice of the time and place of any public sale or of the time after which a
private sale may take place, which notice to Pledgor hereby acknowledges to be
reasonable).

         9.       Proceeds. The proceeds of any disposition of all or any part
                  --------
of the Pledged Stock, as provided in Section 8, will be applied as follows: (a)
                                     ---------
first, to the costs and expenses incurred in connection therewith or incidental
thereto, including the Company's attorneys' fees and legal expenses; (b) second,
to the satisfaction of the Obligations; (c) third, to the payment of any other
amounts required by applicable law; and (d) fourth, to Pledgor to the extent of
any surplus remaining. In the event that there is any deficiency due to the fact
that the proceeds from the aforesaid disposition of the Pledged Stock were
inadequate to satisfy the Obligations, Pledgor will not be liable to the Company
for such deficiency.

         10.      Private Sale. Pledgor recognize and acknowledge that the
                  ------------
company may be unable to effect a public sale of all or a part of the Pledged
Stock and may elect to resort to one or more private sales to purchasers who
will be obligated to agree, among other things, to acquire the Pledged Stock for
their own account, for investment, and not with a view to the distribution or
resale thereof. Pledgor acknowledges that any such private sales may be at
prices and on terms less favorable than those of public sales, and agrees that
such private sales will be deemed to have been made in a commercially reasonable
manner and that the Company has no obligation to delay sale of any Pledged Stock
to permit Pledgor to register it for public sale under the Securities Act of
1933, as amended.

         11.      Release of Pledged Stock. Upon the execution hereof, Pledgor
                  ------------------------
will deliver to Escrow Agent the stock certificates representing the Pledged
Stock, including Pledgor's endorsement thereon or appropriate stock powers duly
executed in blank, as appropriate, to be held by the Escrow Agent in accordance
with the terms of this Agreement and Section 1.9 of the Purchase Agreement.

         12.      Performance by Pledgor. Upon full payment and performance of
                  ----------------------
all of the Obligations by Pledgor and upon payment of all additional costs and
expenses provided herein, this Agreement will terminate, and the Company will
deliver or caused to be delivered to Pledgor, such of the Pledged Stock that has
not been sold or otherwise disposed of pursuant to this Agreement.

                                       3

<PAGE>

         13.      Remedies. The rights and remedies provided herein are
                  --------
cumulative and are in addition to, and not exclusive of, any rights or remedies
provided in other instruments and agreements between the Company and Pledgor, or
as provided by law.

         14.      Legend. As long as the shares are subject to this Agreement,
                  ------
such shares shall bear the following legend:

         THE SHARES REPRESENTED HEREBY ARE SUBJECT TO THAT CERTAIN STOCK PLEDGE
         AGREEMENT, DATED JUNE 1, 2001 BY AND BETWEEN DAOU SYSTEMS, INC. AND
         JAMES ROBERTO AND MAY NOT BE ASSIGNED, SOLD OR TRANSFERRED EXCEPT AS
         PROVIDED THEREIN.

         15.      Successors and Assigns. This Agreement is binding upon and
                  ----------------------
will inure to the benefit of the parties hereto, and their successors and
assigns.

         16.      Governing Law. This Agreement will be governed by and
                  -------------
construed in accordance with California law, without regards to the principles
of the conflict of laws.

         17.      Notices. All notices, consents, waivers, and other
                  -------
communications under this Agreement must be in writing and will be deemed to
have been duly given when (a) delivered by hand (with written confirmation of
receipt), (b) sent by facsimile (with written confirmation of receipt), provided
that a copy is mailed by registered mail, return receipt requested or (c) when
received by the addressee, if sent by a nationally recognized overnight delivery
service (receipt requested), in each case to the appropriate addresses and
facsimile numbers set forth below (or to such other addresses and facsimile
numbers as a party may designate by notice to the other parties):

         If to Company:           DAOU Systems, Inc.
                                  5120 Shoreham Place
                                  San Diego, California 92122
                                  Attention:
                                  Facsimile No.: (858) 452-1338

         With a copy to:          Baker & McKenzie
                                  101 W. Broadway, 12th Floor
                                  San Diego, California 92121-3890
                                  Attention: Abby B. Silverman
                                  Facsimile No.: (619) 236-0429

         If to Pledgor:           James Roberto
                                  Address on file with the Company

         18.      Entire Agreement. This Agreement and any other agreement
                  ----------------
expressly referred to herein supersedes any and all other agreements, either
oral or in writing, among the parties hereto, with respect to the subject matter
hereof and contains all of the covenants and agreements among the parties with
respect to the subject matter hereof.

                                       4

<PAGE>

         19.      Waiver; Modification. No term or condition of this Agreement
                  --------------------
will be deemed to have been waived nor will there by any estoppel to enforce any
provision of this Agreement except by written instrument of the party charged
with such waiver or estoppel. No amendment or modification of this Agreement
will be deemed effective unless and until executed in writing by all of the
parties hereto.

         20.      Severability. All agreements and covenants contained herein
                  ------------
are severable and in the event that any of them will be held to be invalid by
any court of competent jurisdiction, this Agreement will be interpreted as if
such invalid agreements or covenants were not contained herein.

         21.      Delay; Time of Essence. No failure or delay by a party in
                  ----------------------
exercising any right, power, or privilege hereunder will operate as a waiver
thereof, and no single or partial exercise thereof will preclude any other or
further exercise or the exercise of any other right, power, or privilege. Time
is of the essence of each and every provision of this Agreement of which time is
an element.

         22.      Attorneys' Fees. In any action or proceeding brought to
                  ---------------
enforce or interpret any provision of this Agreement, the prevailing party will
be entitled to recover reasonable attorneys' fees in addition to any other
available remedy.

                [REMAINDER OF THIS PAGE INTENTIONALLY LEFT BLANK]

                                       5

<PAGE>

         IN WITNESS WHEREOF, the parties have executed this Stock Pledge
Agreement effective as of the date first written above.

Pledgor:

By: /s/ JAMES T. ROBERTO
    -----------------------------------
    James T. Roberto

The Company

DAOU Systems, Inc.

By: /s/ NEIL R. CASSIDY
    -----------------------------------
Name: Neil R. Cassidy
      ---------------------------------
Its: EVP and CFO
     ----------------------------------

                    Signature Page to Stock Pledge Agreement,
                            Executed August 28, 2001,
               to be Effective as of the Date First Written Above

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00031-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00031-of-00352.parquet"}]]