Database.php minor fixes
Database.php minor fixes

- Improve documentation

- Add intval() call in getNumRows so that it always returns an int, even if
  for some reason it returns falsy

newzly/testswarm,newzly/testswarm,newzly/testswarm,newzly/testswarm