Added flags list to dbHashQueryTree