Fix #381 dbpdoEngine::num_rows() doesn't work as expected
Minor formatting
Simplify querying for data
Merge pull request #382 from nmalcolm/fix-381

 Fix #381 dbpdoEngine::num_rows() doesn't work as expected