Added query functionality to dbObj.php