sql bufixes latex-file nearly finished