database issues final project couchDB