Connection = couchbeam_server:start_connection_link(#couchdb_params{host="127.0.0.1", port=5984}), Db = couchbeam_server:open_db(Connection,DbName), Doc = {{[<<"somefield">>, <<"somevalue">>]}}, Doc1 = couchbeam_db:save_doc(Db, Doc),