QuickCIM is a great free open source tool for CodeIgniter Models generation based on templates from database tables.
The generated models extends of MY_Model by Chris Schmitz (https://github.com/ccschmitz/codeIgniter-base-model). Also check http://davidburgosonline.com/desarrollo-web/2012/como-automatizar-modelos-codeigniter-my-model/ for additional use info.
Written in PHP & Javascript using CodeIgniter, jQuery and Backbone.js frameworks.
Web-based relational database designer. With version control, autosave and real-time database manipulation. TODO: admin module, search, undo/redo buttons, multi-database real-time support (only PostgreSQL actually), etc. Based on WWWSQLDesigner