added dbmng_query2array function