Connection implementation

Hold on to your butt because we have working JDBC code, newly re factored and a shiny  finish.
Convert tabs to spaces