A Codeigniter Database model which uses json