Fixed excessive school import SQL queries issue.