Removed Connection Class and Added Func

Removed classes folder and added db connect as a func within func. Made
it a glablal var