add query all and delete