title: Trying to add data frames to a data base but getting an error in Rstudio Error: disk I/O error Error: no such savepoint: dbWriteTable_59538_usblbmbhlq
body: <pre><code>HW07db &lt;- dbConnect(RSQLite::SQLite(), &quot;HW07-db.sqlite&quot;)
  dbListTables(HW07db)
  
  getwd()
  
  CUSTOMER &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/CUSTOMER.txt&quot;)
  DEPARTMENT &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/DEPARTMENT.txt&quot;) 
  EMPLOYEE_PHONE &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/EMPLOYEE_PHONE.txt&quot;) 
  EMPLOYEE &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/EMPLOYEE.txt&quot;) 
  INVOICES &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/INVOICES.txt&quot;) 
  PRODUCT &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/PRODUCT.txt&quot;) 
  SALES_ORDER_LINE &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/SALES_ORDER_LINE.txt&quot;)
  SALES_ORDER &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/SALES_ORDER.txt&quot;)
  STOCK_TOTAL &lt;- read.csv(&quot;/Users/nwillows/Desktop/UCSB-F21/PSTAT10/Labs/Lab13.14/tinyclothes/STOCK_TOTAL.txt&quot;)
  </code></pre>
  <p>#add data frames to your data base</p>
  <p>getting an error below.</p>
  <pre><code>Error: disk I/O error
  Error: no such savepoint: dbWriteTable_59538_usblbmbhlq
  
  dbWriteTable(HW07db, &quot;CUSTOMER&quot;, CUSTOMER)
  dbWriteTable(HW07db, &quot;DEPARTMENT&quot;, DEPARTMENT)
  dbWriteTable(HW07db, &quot;EMPLOYEE_PHONE&quot;, EMPLOYEE_PHONE)
  dbWriteTable(HW07db, &quot;EMPLOYEE&quot;, EMPLOYEE)
  dbWriteTable(HW07db, &quot;INVOICES&quot;, INVOICES)
  dbWriteTable(HW07db, &quot;PRODUCT&quot;, PRODUCT)
  dbWriteTable(HW07db, &quot;SALES_ORDER_LINE&quot;, SALES_ORDER_LINE)
  dbWriteTable(HW07db, &quot;SALES_ORDER&quot;, SALES_ORDER)
  dbWriteTable(HW07db, &quot;STOCK_TOTAL&quot;, STOCK_TOTAL)
  </code></pre>