temporarily comment out update method
fix createDatastore typo
new del method
don't put db.close in separate function