Database: refactored to not to use PDO::FETCH_CLASS (BC break!)

Casting result-row to array is possible by iterator_to_array() function.

Please anyone to review & test this.
At the moment, this is RFC... Also closes #914.