Zend certified PHP/Magento developer

I’m currently working on a framework. There is just a single file containing the Database class (it uses PDO). I’ve seen many people use a database interface and a database factory which loads the needed database adapter (MySQL, …). Should I use this approach or stick to my current one?