removed couchdb log and reverted locking code