Update util.py

Adding methods to connect and get data.