add query adapter