Added query and resultset as array methods