Query is pretty much done.

Have to figure out what I'm doing about the PDO object.