Finished SQL half of the Query methods

The various query methods have placeholders where server data variables need to be.