Revert "Connection class"

This reverts commit 7e6c5de3172c731e37bdcd6bc229f32b7a51b5f7.