Update dsql.php

* fixed error in function foundRows() for db-independent method of getting COUNT(*) result.
* fixed minor typo