drive file query function