sqlite method for ranking schools by city implemented