connection.py edits yet again

i have to redo some stuff… due to rollback