removed more unused code
removed more functions from network.py that is not used
removed another unused computation in network.py, database cursor closing is now handled much stricter than before