private async Task <InvokeResult> AddRecord(PostgresqlConnector connector, DataStream stream, String deviceId, int int1, int int2, string dateStamp = "")
        {
            var record = GetRecord(stream, deviceId, String.IsNullOrEmpty(dateStamp) ? DateTime.Now.ToJSONString() : dateStamp,
                                   new System.Collections.Generic.KeyValuePair <string, object>("int1", int1),
                                   new System.Collections.Generic.KeyValuePair <string, object>("int2", int2),
                                   new System.Collections.Generic.KeyValuePair <string, object>("datetime1", DateTime.Now.ToJSONString()),
                                   new System.Collections.Generic.KeyValuePair <string, object>("dec1", 12.2),
                                   new System.Collections.Generic.KeyValuePair <string, object>("str1", "value"),
                                   new System.Collections.Generic.KeyValuePair <string, object>("local1", "22.34234,-82.2342342"),
                                   new System.Collections.Generic.KeyValuePair <string, object>("pointindex1", 1000)
                                   );

            return(await connector.AddItemAsync(record));
        }