add new function: dbmng_query2array

must be finalize