finish random approach parts, replace hashtable to hashmap, record valid
queries and rowcount
almost finish this shoot prototype