Save the current instance data to CouchDB. Will update an existing record if the ID matches. Will run the generate_id() method if the id is null.