I'll walk you through writing a series of persistence functions in your Kitura application, so that you have an easy way to keep track of how your app uses CouchDB.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3770-server-side-swift-with-kitura/lessons/16