finished query, deletequery, testing works