add query and reports