Row-Data-Gateway Pattern, Aktive-Record-Pattern and Table-Data-Gateway-Pattern. I decide this days to use an Object-Relational Mapping (ORM) framework in PHP5 for the resource tier in spooXe. It allows to access the database using a set of objects, providing a simple API for storing and retrieving data. So a lot of obsolete $db stuff and also the class datalist ( crashed my Apache when more than 500 datas in table to get ) in the core code will be history. 