Support for editing and deleting queries