Codeigniter Database form generation