changed how connections are made
connection works now
typo
hacked together a way to include the connection in class methods