write file system db