Save and get datasources from db