Cleaning up queries.php

Clearing out some excess code