connection.py web stuff