add tuple creation function
extend datalog-couchdb connectivity