run.py: create connection when it's used