Build a form from a database table structure for CodeIgniter