CouchDB Code

Migrated, baby!