Changed DBConnector to return connection as static factory