kmer database query class