codeigniter insert update delete

Some functions in the model needs rush up