safer way to delete the sqlite db file when done