submit the document and sql file