Custom Connection Class

obsoletes #8