fix where string. remove print strings
add clear query method