added get_or_create_db method to CouchDB