Update queries.php

added functions to queries.php