Adding login and stuff

Added login and dbc connection. A lot of stuff is commeted out, will
clean up later.