Replaced missing destroy in queries