seperate connection related class to other packages