added query history!