queryDrive function complete