writing to ffdb