connect to datasource working