file management: db in sync with fs