fixing up filedb