converted filedb:fdb from vec to defstruct