updated db extraction command (preserves file structure)