It actually I limitation of Windows and the way it handles multitasking. You might want to try a "Do Events" in your code that does the queries. This might not work but it is worth a shot.
Do Events will tell the computer to do other events while you are waiting for some command to process. (Usually it mean while access the disk or someother I/O device) This might let the timer fire so you can animate your mouse.