couchdb support added, db config fixes