build config and datasource configuration