Akshay : changing the query for per district to sql from ORM