<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_service_agreement_status(storage_path, service_agreement_id, status='pending'):
 """ Update the service agreement status. :param storage_path: storage path for the internal db, str :param service_agreement_id: :param status: :return: """

    conn = sqlite3.connect(storage_path)
    try:
        cursor = conn.cursor()
        cursor.execute(
            'UPDATE service_agreements SET status=? WHERE id=?',
            (status, service_agreement_id),
        )
        conn.commit()
    finally:
        conn.close()