Fix incorrect usage of Horde_Db API.

The code was assuming select() would return a PDOStatement, but it will only
guarantee to return a Traversable (or Horde_Db_Adapter_Base_Result after my
refactoring).