Remove SearchThread. I wrote this class back when we wanted to make all database queries happen in a thread. Now that we are going to find a more general way I'm confident it will not look like SearchThread.
Windows __declspec(align(#)) doesn't support expressions. Use 8 for 64-bit, 4 for 32-bit.