Changes to compatibilize the library to CI 3.x

I have added here https://github.com/nazieb/elegant-orm/issues/3 an explanation of the changes. Thanks for making this orm!