Add data source from code