can you tell after db connection which query write in run command for select all data & store in particular folder