[fileDB] switch to writeFileSync again