Added AJAX report loading & query formatting

-Added AJAX report loading in index.php
-Added formatting to query methods in query.class.php
-Added new query methods