REFACTOR: Separate CouchDB and Node Files.