manage queries (add, remove)