PHP Data Mapper and Active Record implementation for MySQL and SQLite