Fix SQL errors for MSWord, XLSX and PPTX module