Moving connection.py's functionality to common.py