commit documents and sql