Implements flush and flush_all

Apparently the fastest way to clear a leveldb instance is to close the db, delete the directory and start over.