all the classes and functions for CodeIgniter models - by thomas