adds query monitor