Add a method for retrieving running queries