added function for running direct queries
replaced getConnection with the direct query function in db class
added order by parameter to select function
phpdoc update in db class: query func and order by in select func