Update connection.py

fixed order