Connecting models to datasources