Fixed query; added delete option for accounts and attendance