Updated Query, added commented out deletequery