Run query to database query queryserv database

Only method not converted is 'GeneralQueryReceive' since I can't be sure it won't have a blob moving through it.