made SQL for covoting network (see comments in python file)