database validation for schools and classtables