> stmt = db.prepare(sql)
> array = stmt.execute(*bind_vars).fetch_all
> stmt.finish # free resources / locks held by the statement

thanks a lot!!
there is a small mistake in your code but you pointed me into the right  
direction :)
stmt.execute returns nil so you have to do:

stmt.execute
array=stmt.fetch_all

bye!
Dominik