added connection accessor for various data sources. 
Added copy-command support.