finalize FileDB add and remove