The specialist in lending to small- and medium-sized enterprises was bailed out in August and several times since by rescue packages drawn up in large part by the state-owned development bank KfW , which holds a major stake in IKB .