test-write_oneshot.R first destroys the database before testing the write function.