Basic crud for documents and elements