Use nifty function to register datasources