place appkey on opts object of datasource spec if specified