save database to disk(untested)