Truncate files after writing them to erase old contend
Move fs-db to it's own module