Connector cleanup 1

Starting to screw around with connector files. Encapsulated some of the
basic things in file opening sequence for ease of use. opendb() tested
and functional