Use connect.py to establish connection and cursor for kd_comp.py