Rewrote the read_districts_function
Rewrote the read_districts function to make it more efficient.
The rest of the code remains unchanged for now and will be changed depending to how we reformat the code to fit in the SQL functionality.
\approve @ds
Edited by Simantini Shinde