code igniter - refactoring for model done