Added add_new_query fucntion to class